package com.bsxwl.config;

//@Configuration
//@EnableConfigurationProperties({JdbcProperties.class})
public class JdbcConfig {


    /*@Bean
    public DataSource dataSource(JdbcProperties jdbc){
        DruidDataSource dataSource =new DruidDataSource();
        dataSource.setUrl(jdbc.getUrl());
        dataSource.setDriverClassName(jdbc.getDriverClassName());
        dataSource.setUsername(jdbc.getUsername());
        dataSource.setPassword(jdbc.getPassword());
        return dataSource;
    }*/

    /*@Bean
    @ConfigurationProperties(prefix = "jdbc")
    public DataSource dataSource(){
        return new DruidDataSource();
    }*/
}
